_copyright = 'Copyright 2001, Zolera Systems Inc. All Rights Reserved.\nCopyright 2001, MIT. All Rights Reserved.\n\nDistributed under the terms of:\n Python 2.0 License or later.\n http://www.python.org/2.0.1/license.html\nor\n W3C Software License\n http://www.w3.org/Consortium/Legal/copyright-software-19980720\n'
import string
from xml.dom import Node
try:
from xml.ns import XMLNS
except:
class XMLNS:
BASE = 'http://www.w3.org/2000/xmlns/'
XML = 'http://www.w3.org/XML/1998/namespace'
try:
import cStringIO
StringIO = cStringIO
except ImportError:
import StringIO
_attrs = lambda E: if not E.attributes or E.attributes.values():